﻿#define A
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Reflection;

namespace Sunny.Lib.CustomeAttribute
{
    public class ConditionalAttributeTest
    {
        [ConditionalAttribute("A")]
        private static void SayA()
        {
            System.Console.WriteLine("A");
        }

        [ConditionalAttribute("B")]
        private static void SayB()
        {
            System.Console.WriteLine("B");
        }

        [ConditionalAttribute("C")]
        private static void SayC()
        {
            System.Console.WriteLine("C");
        }

        public static void TestStart()
        {
            SayA();
            SayB();
            SayC();
            System.Console.Read();
        }
    }

    [AttributeUsage(AttributeTargets.All, Inherited = false, AllowMultiple = true)]
    public class SunTestAttribute : Attribute
    {
        public SunTestAttribute()
        {

        }
    }
}
